<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style>
    
  </style>
</head>
<body>
  
</body>
<script>

  // "use strict"

  // 当前函数的执行对象

  // 定义
  // function fn(){
  //   console.log(this);
  // }
  // 执行
  // fn();


  var obj = {
    name:"obj",
    fn:function(){
      console.log(this)
    }
  }
  obj.fn();

  var f = obj.fn;
  f();

  var obj2 = {
    name:"obj2",
    fn: obj.fn
  }
  obj2.fn();


  var obj3 = {
    name:"obj3",
    fn: function(a){
      a();
    }
  }
  obj3.fn( obj2.fn );


  document.onclick = obj2.fn;


  var hahaha = {};
  hahaha.xx = obj2.fn;

  hahaha.xx();

  
  
</script>
</html>